package com.freemalll.merchant.domain.dto;

public class DTOAddress {
	
	private String oldAddress = "";
	private String newAddress = "";
	private String province = "";
	private String city = "";
	private String county = "";
	private String street = "";
	private String proviceCode;
	private String cityCode;
	private String countyCode;
	private String address;//地址
	private String remark;//备注
	private String ckAddress;//选择的地址
	private String lng;//经度
	private String lat;//纬度
	private String distance;//距离
    private double difference;//两点之间的差距

    public double getDifference() {
        return difference;
    }

    public void setDifference(double difference) {
        this.difference = difference;
    }

    public String getDistance() {
		return distance;
	}

	public void setDistance(String distance) {
		this.distance = distance;
	}

	public String getOldAddress() {
		return oldAddress;
	}
	public void setOldAddress(String oldAddress) {
		this.oldAddress = oldAddress;
	}
	public String getNewAddress() {
		return newAddress;
	}
	public void setNewAddress(String newAddress) {
		this.newAddress = newAddress;
	}
	public String getProvince() {
		return province;
	}
	public void setProvince(String province) {
		this.province = province;
	}
	public String getCity() {
		return city;
	}
	public void setCity(String city) {
		this.city = city;
	}
	public String getCounty() {
		return county;
	}
	public void setCounty(String county) {
		this.county = county;
	}
	public String getStreet() {
		return street;
	}
	public void setStreet(String street) {
		this.street = street;
	}
	public String getProviceCode() {
		return proviceCode;
	}
	public void setProviceCode(String proviceCode) {
		this.proviceCode = proviceCode;
	}
	public String getCityCode() {
		return cityCode;
	}
	public void setCityCode(String cityCode) {
		this.cityCode = cityCode;
	}
	public String getCountyCode() {
		return countyCode;
	}
	public void setCountyCode(String countyCode) {
		this.countyCode = countyCode;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public String getCkAddress() {
		return ckAddress;
	}

	public void setCkAddress(String ckAddress) {
		this.ckAddress = ckAddress;
	}

	public String getLng() {
		return lng;
	}

	public void setLng(String lng) {
		this.lng = lng;
	}

	public String getLat() {
		return lat;
	}

	public void setLat(String lat) {
		this.lat = lat;
	}

	@Override
	public String toString(){
		return this.province.toString()+this.city.toString()+this.county.toString()+this.street.toString();
	}
	
	public String showAddressSplit(){
		return this.province.toString()+" | "+this.city.toString()+" | "+this.county.toString()+" | "+this.street.toString();
	}
}
